<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/3
  Time: 13:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>

    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/jspTemplate.jsp" %>
    <title>编辑新闻</title>

    <script type="text/javascript" src="/static/js/admin/news/news.js"></script>

    <!-- 配置文件 -->
    <script type="text/javascript" src="/static/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="/static/ueditor/ueditor.all.js"></script>
    <link rel="stylesheet" type="text/css" href="/static/ueditor/themes/default/css/ueditor.css" />
</head>
<body>
<article class="page-container">
    <form action="" class="form form-horizontal" id="form-member-add" enctype="multipart/form-data">
        <input id="tid" name="tid" value="${news.tid}" type="hidden">
      <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>标题：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input value="${news.title}" id="title" name="title">

            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>图片：</label>
            <div class="formControls col-xs-8 col-sm-9">

                <input class="input-text upload-url" value="${news.newsTitlePic}" type="text" name="resourceUrl" id="photo" readonly nullmsg="请添加附件！" style="width:200px">
                <a href="javascript:void(0);" class="btn btn-primary radius upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
                <input type="file" multiple name="location" class="input-file" style="left: 0;font-size: 1.5em">



            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>简介：</label>
            <div class="formControls col-xs-8 col-sm-9">


                    <input id="newsIntro" name="newsIntro" value="${news.newsIntro}"/>

            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>来源：</label>
            <div class="formControls col-xs-8 col-sm-9">


                    <input id="source" name="source" value="${news.source==null?"赛乐网":news.source}"/>

            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>排序：</label>
            <div class="formControls col-xs-8 col-sm-9">


                    <input id="sort" name="sort" value="${news.sort==null?"9999":news.sort}"/>

            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>内容：</label>
            <div class="formControls col-xs-8 col-sm-9">


                    <textarea id="content" name="content" style="height: 80%">${news.content}</textarea>
                    <script type="text/javascript">
                        UE.getEditor('content',{
                            //toolbars:[['FullScreen','simpleupload' , 'Source', 'Undo', 'Redo','Bold','test']],
                            initialFrameHeight:200
                        });
                    </script>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>类型：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="select" name="newsType" id="newType">
                    <option value="1" ${news.newsType=="1"?"selected":""}>少先队动态</option>
                    <option value="2" ${news.newsType=="2"?"selected":""}>少先队知识</option>
                    <option value="3" ${news.newsType=="3"?"selected":""}>五彩校园</option>
                </select>
            </div>
        </div>


        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="button" id="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>

<%@ include file="/common/include-footer.jsp" %>
</body>
</html>
